I have an Excel document that I've brought into DOORS to manage the requirements contained within it. The Excel Document is split into two halves (it's actually an import of an XML file that our customer provides to us and we must use this document in this format). |
Re: Complex Filtering Question - iterating through attributes to compare them accept(object) and reject(object) See the help file. |
Re: Complex Filtering Question - iterating through attributes to compare them OurGuest - Tue Sep 06 07:32:00 EDT 2011 Being relatively new to DXL, I'm not sure I understand how accept/reject will help? Would I be doing something like using for loops to iterate through the objects to find the ones I need and then mark them as "accept" using the accept/reject functions? Would this then result in my view only having the objects that are needed. Right now, my DXL code has the Filter functions being used to create the filtered list of reference ID's. And now I"m trying to figure out how to take that list of ID's and stick them in an array or Skip List, turn off the filtering and then iterate through the objects to find the ones I need. Thanks again |
Re: Complex Filtering Question - iterating through attributes to compare them OurGuest - Tue Sep 06 07:32:00 EDT 2011 Being relatively new to DXL, I'm not sure I understand how accept/reject will help? Would I be doing something like using for loops to iterate through the objects to find the ones I need and then mark them as "accept" using the accept/reject functions? Would this then result in my view only having the objects that are needed. Right now, my DXL code has the Filter functions being used to create the filtered list of reference ID's. And now I"m trying to figure out how to take that list of ID's and stick them in an array or Skip List, turn off the filtering and then iterate through the objects to find the ones I need. Thanks again |
Re: Complex Filtering Question - iterating through attributes to compare them {code} //ExampleFilter /*Demo */ Module m=current Object o string s load view "Standard view" for o in m do { s=o."Applicable" "" reject o if(s=="TRUE") accept o } filtering on |
Re: Complex Filtering Question - iterating through attributes to compare them OurGuest - Tue Sep 06 07:58:51 EDT 2011
See simple demo as follows:
//ExampleFilter
/*Demo */
Module m=current
Object o
string s
load view "Standard view"
for o in m do
{ s=o."Applicable" ""
reject o
if(s=="TRUE") accept o
}
filtering on
|
Re: Complex Filtering Question - iterating through attributes to compare them OurGuest - Tue Sep 06 08:03:36 EDT 2011
See simple demo as follows:
//ExampleFilter
/*Demo */
Module m=current
Object o
string s
load view "Standard view"
for o in m do
{ s=o."Applicable" ""
reject o
if(s=="TRUE") accept o
}
filtering on
I created a form (call it Form1) to simplify some data entry for what we need to do. After the filtering has been applied, is there a way I can force this form to be displayed to the user? I can't seem to find a reference to the forms in the DXL Reference guide. Thanks again! |
Re: Complex Filtering Question - iterating through attributes to compare them rfischman - Tue Sep 06 11:29:35 EDT 2011 |
Re: Complex Filtering Question - iterating through attributes to compare them OurGuest - Tue Sep 06 12:34:43 EDT 2011 If I seect Tools --> Forms --> Run Form, I can choose to run the form that I have already created. It runs this form against my filtered set of objects. What I want to do, if possible is: A) Have user select category to apply (I got this working already using the DBE and DB functions) B) Apply the filter (Works now thanks to your sample code) C) Run the form (Named Form1) against the filtered list of objects Thanks |